class CreateIncidents < ActiveRecord::Migration
  def self.up
    create_table :incidents do |t|
	t.belongs_to :machine
	t.string :incident_type
	t.int :ram_use
	t.int :ram_total
	t.float :ram_percent
	t.int :disk_use
	t.int :disk_total
	t.float :disk_percent
	t.date :resolution_date	
    t.timestamps
    end
  end

  def self.down
    drop_table :incidents
  end
end
